/**
 * 登录返回的VO对象
 */
export default class LoginVO {
  /**
   * @param {number} id - 用户ID
   * @param {string} username - 用户名
   * @param {string} realname - 真实姓名
   * @param {number} age - 年龄
   * @param {number} gender - 性别
   * @param {string} phoneNumber - 手机号码
   * @param {string} createdAt - 创建时间
   * @param {string} updateAt - 更新时间
   * @param {string} avatar - 头像
   * @param {number} schoolId - 学校ID
   * @param {string} schoolName - 学校名称
   * @param {number} classId - 班级ID
   * @param {number} grade - 年级，1代表1年级
   * @param {number} classVal - 班级，1代表1班
   * @param {number} role - 用户角色 0：班主任 1：校管理员 2：教育局管理员
   * @param {string} token - 认证令牌
   */
  constructor({
    id = null,
    username = '',
    realname = '',
    age = null,
    gender = null,
    phoneNumber = '',
    createdAt = '',
    updateAt = '',
    avatar = '',
    schoolId = null,
    schoolName = '',
    classId = null,
    grade = null,
    classVal = null,
    role = null,
    token = ''
  } = {}) {
    this.id = id
    this.username = username
    this.realname = realname
    this.age = age
    this.gender = gender
    this.phoneNumber = phoneNumber
    this.createdAt = createdAt
    this.updateAt = updateAt
    this.avatar = avatar
    this.schoolId = schoolId
    this.schoolName = schoolName
    this.classId = classId
    this.grade = grade
    this.classVal = classVal
    this.role = role
    this.token = token
  }
} 